package com.p2p.backend.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.p2p.backend.dao.BackBankDao;
import com.p2p.backend.service.BackBankService;

/**
 * leiwen@yiqihao.com
 */
@Service("backBankService")
public class BackBankServiceImpl implements BackBankService {
	@Autowired
	private BackBankDao dao;

	public List<Map<String, Object>> listAll() {
		return dao.listAll();
	}

	public void add(Map<String, Object> params) {
		dao.add(params);
	}

	public void pass(Integer id) {
		dao.pass(id);
	}

	public void unpass(Integer id) {
		dao.unpass(id);
	}

	public void update(Map<String, Object> params) {
		dao.update(params);
	}

	@Override
	public Map<String, Object> get(Integer id) {
		return dao.get(id);
	}
}
